]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Clean up overview code
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 08:58:59 +0000 (03:58 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 19:38:07 +0000 (14:38 -0500)
The comment here is a liar. We certainly can handle failure
using _syncInputMode().

https://bugzilla.gnome.org/show_bug.cgi?id=688589

js/ui/overview.js

index da4dbae149b99014c6cc5d832e452408e7451918..7780e8263dfe25ed7095dc4dec3f993eba50e9a8 100644 (file)
@@ -434,12 +434,11 @@ const Overview = new Lang.Class({
             return;
         if (this._shown)
             return;
-        // Do this manually instead of using _syncInputMode, to handle failure
-        if (!Main.pushModal(this._group, { keybindingMode: Main.KeybindingMode.OVERVIEW }))
+        this._shown = true;
+        this._syncInputMode();
+        if (!this._modal)
             return;
-        this._modal = true;
         this._animateVisible();
-        this._shown = true;
     },
 
     fadeInDesktop: function() {